"""
1. 请求IHRM项目的登录接口，URL： http://ihrm-test.itheima.net/api/sys/login
2. 请求头： Content-Type: application/json
3. 请求体： {"mobile":"13800000002", "password":"123456"}
"""
# 導包
import requests

# 發送請求
login_url = "http://ihrm-test.itheima.net/api/sys/login"
headers = {
    "ontent-Type": "application/json"
}
body = {
    "mobile": "13800000002",
    "password": "123456"
}
response = requests.post(url=login_url, json=body, headers=headers)

# 查看響應
response.encoding = "utf-8"
print(response.json())